package com.zxx.pattern.interpretPattern.interpret;

/**
 * 非终结表达式
 * @author zxx on 2021/2/24
 */
public class ValueNode implements Node {

    private int value;

    public ValueNode(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }
}
